 <?php
  defined('ACC')||exit('ACC Denied'); 
  class usermodel extends model{
      protected $table = 'user';
      public function reg($data){
          $this->db->autoExecute( $data, $this->table, 'insert');
      }
      
      public function select(){
          return $this->db->getAll('select * from ' . $this ->table);
      }          
  }
?>
